home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 2⁄2⁄90 / 0605-Audio Callbacks & De-Feb90 < prev    next >
Encoding:
Text File  |  1990-02-02  |  1.7 KB  |  45 lines  |  [TEXT/GEOL]

  1. Item    6443372                         2-Feb-90        12:52PST
  2.  
  3. From:   D5369                           Mgmt Sys Des, Chuck McMath,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. cc:     MACAPP.TEST                     MacApp SQA Team
  8.  
  9. Sub:    Audio Callbacks & Debugger
  10.  
  11. Hey MacApper's:
  12.  
  13. I have a MacApp application that asynchronously plays audio files (_big_ data
  14. files).  The actual playing is done by a cohandler who schedules buffers in his
  15. DoIdle method. It's done like this:
  16.  
  17.                 in InitSoundStuff:
  18.                         SndNewChannel(..., ..., ...);
  19.  
  20.                 in DoIdle:
  21.                         if <stuff left to play> then
  22.                             SndDoCommand(bufferCmd,... ... )
  23.                             SndDoCommand(callbackCmd, ..., ...)
  24.                         else
  25.                             SndDisposeChannel(..., ...)
  26.  
  27. The actual details are not important for what I'm asking; if anyone wants to
  28. find out the nitty gritty, please link me.  Here's the problem:  If I do a
  29. '-debug' build, then the first time the callback routine executes I break into
  30. the MacApp debugger.  It tells me that I'm "trying to re-enter the MacApp
  31. Debugger" or something like that.  And that's when I'm lucky -- sometimes the
  32. machine just goes into the Twilight Zone.  If I do a '-nodebug' or '-nodebug
  33. -inspector' build it works just fine, and the callback routines work correctly
  34. (the callback just clears a flag, and I follow approved guidelines for setting
  35. and restoring A5, as the Sound Manager documentation on Phil & Dave II tells me
  36. to do).
  37.  
  38. Anyone have experience with Sound Manager callback routines and the MacApp
  39. Debugger and have them working together?
  40.  
  41. Thanks
  42.  
  43. chuck mcmath
  44.  
  45.